// course.js

import * as ajax from "../../common/ajax";
// import axios from 'axios';

export const list = () => ajax.pureGet("/student/course/list");

export const deleteItem = studentCourseId =>
  ajax.pureDelete("/student/course/" + studentCourseId);

// //修正 getCourseDetail 方法的 API 路径
// export function getCourseDetail(courseId) {
//   return axios.get(`/student/course/${courseId}`);  // 修正路径为 /student/course/{courseId}
// }

 export const getCourseDetail = courseId => ajax.pureGet(`/student/course/${courseId}`);

